<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Template • TodoMVC</title>
    <link rel="stylesheet" href="node_modules/todomvc-common/base.css">
    <link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
    <!-- CSS overrides - remove if you don't need it -->
    <link rel="stylesheet" href="css/app.css">
    <style>
        .toggle:checked:after {
            content: ''!important;
            display: block;
            width: 20px;
            height: 20px;
            margin: 10px auto 0;
            background: url('./img/success-ico.png') no-repeat scroll center center;
        }
    </style>
</head>

<body>
    <section class="todoapp" id="app">

        <!-- 头部 -->
        <todo-header @p-add-list="addList"></todo-header>

        <!-- 列表 -->
        <todo-list :p-list="list" @p-edit-list="editList" @p-change-item-status="changeItemsStatus" @p-delete-item="deleteItem"></todo-list>

        <!-- 底部 -->
        <todo-footer :p-list="list" @p-delete-finished-items="deleteFinishedItems"></todo-footer>
    </section>

    <!-- Scripts here. Don't remove ↓ -->
    <script src="node_modules/todomvc-common/base.js"></script>
    <!-- 引入vue -->
    <script src="./node_modules/vue/dist/vue.js"></script>
    <!-- 引入axios--一个封装了ajax的工具库 -->
    <script src="./node_modules//axios/dist/axios.js"></script>
    <!-- 引入头部组件 -->
    <script src="./js/components/header.js"></script>
    <!-- 引入列表组件 -->
    <script src="./js/components/list.js"></script>
    <!-- 引入底部组件 -->
    <script src="./js/components/footer.js"></script>
    <!-- app.js一个臭沙箱 -->
    <script src="js/app.js"></script>
</body>

</html>